package com.foreknow.oopTest.book;

/**
 * @author shkstart
 * @create 2021-07-26 9:55
 */
public class Order {
    private String oid;
    private double money;
    OrderItem item[]=new OrderItem[3];

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Order(String oid,  OrderItem[] item) {
        this.oid = "0001";
       item=new OrderItem[3];
    }

    public OrderItem[] getItem() {
        return item;
    }

    public void setItem(OrderItem[] item,int i) {
        this.item[i] = item[i];
    }
}
